﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="index" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="box">
    <h1 class="title">Sản Phẩm mới</h1>
    <div class="indent">
 
    <asp:DataList ID="DataList1" runat="server" BackColor="blue"
        BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
        GridLines="Both" RepeatColumns="2" onitemcommand="DataList1_ItemCommand">
        <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True" />
        <ItemStyle BackColor="White" ForeColor="#330099" />
        <SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <ItemTemplate>
            <table border="0" cellpadding="0" cellspacing="0" 
                style="width:265px; height: 232px; margin-bottom: 0px;">
                <tr>
                    <td style="text-align: center; width: 198px; height: 19px;">
                        <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" 
                            Font-Underline="False" ForeColor="#00FF33" 
                            Text='<%# Eval("tenmay") %>'></asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: center; width: 198px;">
                        <asp:Image ID="Image2" runat="server" Height="120px" 
                            ImageUrl='<%# "images/"+Eval("HinhAnh") %>' Width="150px" />
                    </td>
                </tr>
                <tr>
                    <td style="text-align: center; width: 198px;">
                        Giá Bán: &nbsp;<asp:Label ID="Label3" runat="server" Style="color: #ff0033" 
                            Text='<%# Eval("GiaBan") %>'></asp:Label>
                        VN&#272;</td>
                </tr>
                <tr>
                    <td style="text-align: center; width: 198px;">
                        <asp:button CommandArgument='<%# Eval("mamay") %>' 
                            CommandName="Mua" id="cmdMua" runat="server" cssClass="button" text="Add to Cart" UseSubmitBehavior="False"></asp:button>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:DataList>
          
    </div>
    </div>
    <table border="0" class="pager">
        <tr>
        <td><asp:button id="cmdPrev" runat="server" text=" << " onclick="cmdPrev_Click"></asp:button></td>
        <td><asp:label id="lblCurrentPage" runat="server"></asp:label></td>
        <td><asp:button id="cmdNext" runat="server" text=" >> " onclick="cmdNext_Click"></asp:button></td>
        </tr>
    </table> 
</asp:Content>

